package cn.mothin.frame.core.base;

import java.io.File;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import cn.mothin.frame.core.db.QueryPage;
import cn.mothin.frame.core.interfaces.vo.IQueryPage;
import cn.mothin.frame.core.interfaces.vo.IViewObject;

/**
 * VO基类
 * 
 * @author zhoush
 * 
 */
@SuppressWarnings("serial")
public class BaseVO extends QueryPage implements IViewObject, IQueryPage,
		Serializable {
	// 参数设定值
	protected String paramValue;
	// 上传的文件数组
	protected File[] uploads;
	// 文件的内容类型
	protected String[] uploadsContentType;
	// 上传文件名
	protected String[] uploadsFileName;

	public String getParamValue() {
		return paramValue;
	}

	public void setParamValue(String paramValue) {
		this.paramValue = paramValue;
	}

	public File[] getUploads() {
		return uploads;
	}

	public void setUploads(File[] uploads) {
		this.uploads = uploads;
	}

	public String[] getUploadsContentType() {
		return uploadsContentType;
	}

	public void setUploadsContentType(String[] uploadsContentType) {
		this.uploadsContentType = uploadsContentType;
	}

	public String[] getUploadsFileName() {
		return uploadsFileName;
	}

	public void setUploadsFileName(String[] uploadsFileName) {
		this.uploadsFileName = uploadsFileName;
	}

	protected List<String> fieldListInViewState = new ArrayList<String>();

	public List<String> getFieldListInViewState() {
		return fieldListInViewState;
	}

	public void addFieldInViewState(String fieldName) {
		fieldListInViewState.add(fieldName);
	}

}
